<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ADS1118: ADS1118 Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ADS1118
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">Arduino library for Texas Instruments ADS1118 chip</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_a_d_s1118-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ADS1118 Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_a_d_s1118_8h_source.html">ADS1118.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afaddf1d46e3b32d433c67122d96a6ebb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#afaddf1d46e3b32d433c67122d96a6ebb">ADS1118</a> (uint8_t io_pin_cs)</td></tr>
<tr class="memdesc:afaddf1d46e3b32d433c67122d96a6ebb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="#afaddf1d46e3b32d433c67122d96a6ebb">More...</a><br /></td></tr>
<tr class="separator:afaddf1d46e3b32d433c67122d96a6ebb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a817f1a7619d97e19475458dc3eea5f88"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a817f1a7619d97e19475458dc3eea5f88">begin</a> ()</td></tr>
<tr class="memdesc:a817f1a7619d97e19475458dc3eea5f88"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method initialize the SPI port and the config register.  <a href="#a817f1a7619d97e19475458dc3eea5f88">More...</a><br /></td></tr>
<tr class="separator:a817f1a7619d97e19475458dc3eea5f88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf67a3c09b9d165f04e2e37e618e4fcb"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#acf67a3c09b9d165f04e2e37e618e4fcb">getTemperature</a> ()</td></tr>
<tr class="memdesc:acf67a3c09b9d165f04e2e37e618e4fcb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getting the temperature in degrees celsius from the internal sensor of the <a class="el" href="class_a_d_s1118.html">ADS1118</a>.  <a href="#acf67a3c09b9d165f04e2e37e618e4fcb">More...</a><br /></td></tr>
<tr class="separator:acf67a3c09b9d165f04e2e37e618e4fcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf872650d20977b5872f88fa36182d3a"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#adf872650d20977b5872f88fa36182d3a">getADCValue</a> (uint8_t inputs)</td></tr>
<tr class="memdesc:adf872650d20977b5872f88fa36182d3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getting a sample from the specified input.  <a href="#adf872650d20977b5872f88fa36182d3a">More...</a><br /></td></tr>
<tr class="separator:adf872650d20977b5872f88fa36182d3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11e4c070217773d71da1d22506e64c00"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a11e4c070217773d71da1d22506e64c00">getMilliVolts</a> (uint8_t inputs)</td></tr>
<tr class="memdesc:a11e4c070217773d71da1d22506e64c00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getting the millivolts from the specified inputs.  <a href="#a11e4c070217773d71da1d22506e64c00">More...</a><br /></td></tr>
<tr class="separator:a11e4c070217773d71da1d22506e64c00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d88241e78575ca86f6206f02cec0614"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a5d88241e78575ca86f6206f02cec0614">getMilliVolts</a> ()</td></tr>
<tr class="memdesc:a5d88241e78575ca86f6206f02cec0614"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getting the millivolts from the settled inputs.  <a href="#a5d88241e78575ca86f6206f02cec0614">More...</a><br /></td></tr>
<tr class="separator:a5d88241e78575ca86f6206f02cec0614"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d79b157a07574bd8745137a8347649e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a8d79b157a07574bd8745137a8347649e">decodeConfigRegister</a> (union <a class="el" href="union_config.html">Config</a> <a class="el" href="class_a_d_s1118.html#ab41e0ba159527f2fc8d48cbedc653380">configRegister</a>)</td></tr>
<tr class="memdesc:a8d79b157a07574bd8745137a8347649e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decoding a configRegister structure and then print it out to the Serial port.  <a href="#a8d79b157a07574bd8745137a8347649e">More...</a><br /></td></tr>
<tr class="separator:a8d79b157a07574bd8745137a8347649e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcabaf741cc3e45e53a6967e0d113073"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#abcabaf741cc3e45e53a6967e0d113073">setSampligRate</a> (uint8_t samplingRate)</td></tr>
<tr class="memdesc:abcabaf741cc3e45e53a6967e0d113073"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setting the sampling rate specified in the config register.  <a href="#abcabaf741cc3e45e53a6967e0d113073">More...</a><br /></td></tr>
<tr class="separator:abcabaf741cc3e45e53a6967e0d113073"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15fcd99b88c988fef9b4cc04347b08a5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a15fcd99b88c988fef9b4cc04347b08a5">setFullScaleRange</a> (uint8_t fsr)</td></tr>
<tr class="memdesc:a15fcd99b88c988fef9b4cc04347b08a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setting the full scale range in the config register.  <a href="#a15fcd99b88c988fef9b4cc04347b08a5">More...</a><br /></td></tr>
<tr class="separator:a15fcd99b88c988fef9b4cc04347b08a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af739fb00547d7a5df8c5010c40b64c6a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#af739fb00547d7a5df8c5010c40b64c6a">setContinuousMode</a> ()</td></tr>
<tr class="memdesc:af739fb00547d7a5df8c5010c40b64c6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setting to continuous adquisition mode.  <a href="#af739fb00547d7a5df8c5010c40b64c6a">More...</a><br /></td></tr>
<tr class="separator:af739fb00547d7a5df8c5010c40b64c6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e2e456dee0ee957fe89319d12bd833c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a9e2e456dee0ee957fe89319d12bd833c">setSingleShotMode</a> ()</td></tr>
<tr class="memdesc:a9e2e456dee0ee957fe89319d12bd833c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setting to single shot adquisition and power down mode.  <a href="#a9e2e456dee0ee957fe89319d12bd833c">More...</a><br /></td></tr>
<tr class="separator:a9e2e456dee0ee957fe89319d12bd833c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a649c53bdf46a93b5ab682d04b9f9df5e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a649c53bdf46a93b5ab682d04b9f9df5e">disablePullup</a> ()</td></tr>
<tr class="memdesc:a649c53bdf46a93b5ab682d04b9f9df5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disabling the internal pull-up resistor of the DOUT pin.  <a href="#a649c53bdf46a93b5ab682d04b9f9df5e">More...</a><br /></td></tr>
<tr class="separator:a649c53bdf46a93b5ab682d04b9f9df5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a833326b882b86608d62450fcedabbe4a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a833326b882b86608d62450fcedabbe4a">enablePullup</a> ()</td></tr>
<tr class="memdesc:a833326b882b86608d62450fcedabbe4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enabling the internal pull-up resistor of the DOUT pin.  <a href="#a833326b882b86608d62450fcedabbe4a">More...</a><br /></td></tr>
<tr class="separator:a833326b882b86608d62450fcedabbe4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a074c71a9eeb1d0db946f5f4b1308c69f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a074c71a9eeb1d0db946f5f4b1308c69f">setInputSelected</a> (uint8_t input)</td></tr>
<tr class="memdesc:a074c71a9eeb1d0db946f5f4b1308c69f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setting the inputs to be adquired in the config register.  <a href="#a074c71a9eeb1d0db946f5f4b1308c69f">More...</a><br /></td></tr>
<tr class="separator:a074c71a9eeb1d0db946f5f4b1308c69f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ad655c0ffe0e3fb2c8c2644176c67f1aa"><td class="memItemLeft" align="right" valign="top"><a id="ad655c0ffe0e3fb2c8c2644176c67f1aa"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#ad655c0ffe0e3fb2c8c2644176c67f1aa">DIFF_0_1</a> = 0b000</td></tr>
<tr class="memdesc:ad655c0ffe0e3fb2c8c2644176c67f1aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Differential input: Vin=A0-A1. <br /></td></tr>
<tr class="separator:ad655c0ffe0e3fb2c8c2644176c67f1aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1caeae913293ef4806516976a2dc7f4b"><td class="memItemLeft" align="right" valign="top"><a id="a1caeae913293ef4806516976a2dc7f4b"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a1caeae913293ef4806516976a2dc7f4b">DIFF_0_3</a> = 0b001</td></tr>
<tr class="memdesc:a1caeae913293ef4806516976a2dc7f4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Differential input: Vin=A0-A3. <br /></td></tr>
<tr class="separator:a1caeae913293ef4806516976a2dc7f4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a683b66748ece91703c8ccc1920a6f762"><td class="memItemLeft" align="right" valign="top"><a id="a683b66748ece91703c8ccc1920a6f762"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a683b66748ece91703c8ccc1920a6f762">DIFF_1_3</a> = 0b010</td></tr>
<tr class="memdesc:a683b66748ece91703c8ccc1920a6f762"><td class="mdescLeft">&#160;</td><td class="mdescRight">Differential input: Vin=A1-A3. <br /></td></tr>
<tr class="separator:a683b66748ece91703c8ccc1920a6f762"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e9e4f86cb2487a24b539c2f7424324d"><td class="memItemLeft" align="right" valign="top"><a id="a8e9e4f86cb2487a24b539c2f7424324d"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a8e9e4f86cb2487a24b539c2f7424324d">DIFF_2_3</a> = 0b011</td></tr>
<tr class="memdesc:a8e9e4f86cb2487a24b539c2f7424324d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Differential input: Vin=A2-A3. <br /></td></tr>
<tr class="separator:a8e9e4f86cb2487a24b539c2f7424324d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca6400b67c3254276ac2bee98153ce1b"><td class="memItemLeft" align="right" valign="top"><a id="aca6400b67c3254276ac2bee98153ce1b"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#aca6400b67c3254276ac2bee98153ce1b">AIN_0</a> = 0b100</td></tr>
<tr class="memdesc:aca6400b67c3254276ac2bee98153ce1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Single ended input: Vin=A0. <br /></td></tr>
<tr class="separator:aca6400b67c3254276ac2bee98153ce1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a252939e56baf2c563a81778d36471b57"><td class="memItemLeft" align="right" valign="top"><a id="a252939e56baf2c563a81778d36471b57"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a252939e56baf2c563a81778d36471b57">AIN_1</a> = 0b101</td></tr>
<tr class="memdesc:a252939e56baf2c563a81778d36471b57"><td class="mdescLeft">&#160;</td><td class="mdescRight">Single ended input: Vin=A1. <br /></td></tr>
<tr class="separator:a252939e56baf2c563a81778d36471b57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae54c53aaa6546ca3d6ff0a5f94bca2da"><td class="memItemLeft" align="right" valign="top"><a id="ae54c53aaa6546ca3d6ff0a5f94bca2da"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#ae54c53aaa6546ca3d6ff0a5f94bca2da">AIN_2</a> = 0b110</td></tr>
<tr class="memdesc:ae54c53aaa6546ca3d6ff0a5f94bca2da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Single ended input: Vin=A2. <br /></td></tr>
<tr class="separator:ae54c53aaa6546ca3d6ff0a5f94bca2da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a960aed37cacaba71cdc4d4761bce7fd4"><td class="memItemLeft" align="right" valign="top"><a id="a960aed37cacaba71cdc4d4761bce7fd4"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a960aed37cacaba71cdc4d4761bce7fd4">AIN_3</a> = 0b111</td></tr>
<tr class="memdesc:a960aed37cacaba71cdc4d4761bce7fd4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Single ended input: Vin=A3. <br /></td></tr>
<tr class="separator:a960aed37cacaba71cdc4d4761bce7fd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab41e0ba159527f2fc8d48cbedc653380"><td class="memItemLeft" align="right" valign="top"><a id="ab41e0ba159527f2fc8d48cbedc653380"></a>
union <a class="el" href="union_config.html">Config</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#ab41e0ba159527f2fc8d48cbedc653380">configRegister</a></td></tr>
<tr class="memdesc:ab41e0ba159527f2fc8d48cbedc653380"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="union_config.html" title="Union configuration register. ">Config</a> register. <br /></td></tr>
<tr class="separator:ab41e0ba159527f2fc8d48cbedc653380"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e1f9b252a8468439c3c4a8b46ec5b9e"><td class="memItemLeft" align="right" valign="top"><a id="a2e1f9b252a8468439c3c4a8b46ec5b9e"></a>
const uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a2e1f9b252a8468439c3c4a8b46ec5b9e">SCLK</a> = 2000000</td></tr>
<tr class="memdesc:a2e1f9b252a8468439c3c4a8b46ec5b9e"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_a_d_s1118.html">ADS1118</a> SCLK frequency: 4000000 Hz Maximum for <a class="el" href="class_a_d_s1118.html">ADS1118</a>. <br /></td></tr>
<tr class="separator:a2e1f9b252a8468439c3c4a8b46ec5b9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af146984531345834e8caaf0ffe017735"><td class="memItemLeft" align="right" valign="top"><a id="af146984531345834e8caaf0ffe017735"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#af146984531345834e8caaf0ffe017735">START_NOW</a> = 1</td></tr>
<tr class="memdesc:af146984531345834e8caaf0ffe017735"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start of conversion in single-shot mode. <br /></td></tr>
<tr class="separator:af146984531345834e8caaf0ffe017735"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace81e16e9c09d65487c451dbc0c86cc5"><td class="memItemLeft" align="right" valign="top"><a id="ace81e16e9c09d65487c451dbc0c86cc5"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#ace81e16e9c09d65487c451dbc0c86cc5">ADC_MODE</a> = 0</td></tr>
<tr class="memdesc:ace81e16e9c09d65487c451dbc0c86cc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">External (inputs) voltage reading mode. <br /></td></tr>
<tr class="separator:ace81e16e9c09d65487c451dbc0c86cc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae519c1c967c59c8d40e06f7517fca0c"><td class="memItemLeft" align="right" valign="top"><a id="aae519c1c967c59c8d40e06f7517fca0c"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#aae519c1c967c59c8d40e06f7517fca0c">TEMP_MODE</a> = 1</td></tr>
<tr class="memdesc:aae519c1c967c59c8d40e06f7517fca0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal temperature sensor reading mode. <br /></td></tr>
<tr class="separator:aae519c1c967c59c8d40e06f7517fca0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac79cd7f4808c3b4ff2721e2e8b6140ba"><td class="memItemLeft" align="right" valign="top"><a id="ac79cd7f4808c3b4ff2721e2e8b6140ba"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#ac79cd7f4808c3b4ff2721e2e8b6140ba">CONTINUOUS</a> = 0</td></tr>
<tr class="memdesc:ac79cd7f4808c3b4ff2721e2e8b6140ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Continuous conversion mode. <br /></td></tr>
<tr class="separator:ac79cd7f4808c3b4ff2721e2e8b6140ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71a3c608158cd617c24b51986f2fccc0"><td class="memItemLeft" align="right" valign="top"><a id="a71a3c608158cd617c24b51986f2fccc0"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a71a3c608158cd617c24b51986f2fccc0">SINGLE_SHOT</a> = 1</td></tr>
<tr class="memdesc:a71a3c608158cd617c24b51986f2fccc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Single-shot conversion and power down mode. <br /></td></tr>
<tr class="separator:a71a3c608158cd617c24b51986f2fccc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5035f17d58adff567e8002d3e5c40fa"><td class="memItemLeft" align="right" valign="top"><a id="ab5035f17d58adff567e8002d3e5c40fa"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#ab5035f17d58adff567e8002d3e5c40fa">PULLUP</a> = 1</td></tr>
<tr class="memdesc:ab5035f17d58adff567e8002d3e5c40fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal pull-up resistor enabled for DOUT ***DEFAULT. <br /></td></tr>
<tr class="separator:ab5035f17d58adff567e8002d3e5c40fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c4404b5040ec1b5f43094961e2f62d5"><td class="memItemLeft" align="right" valign="top"><a id="a9c4404b5040ec1b5f43094961e2f62d5"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a9c4404b5040ec1b5f43094961e2f62d5">NO_PULLUP</a> = 0</td></tr>
<tr class="memdesc:a9c4404b5040ec1b5f43094961e2f62d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal pull-up resistor disabled. <br /></td></tr>
<tr class="separator:a9c4404b5040ec1b5f43094961e2f62d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc7ff1f66a8cda9826daeaf3fe5ba6ab"><td class="memItemLeft" align="right" valign="top"><a id="afc7ff1f66a8cda9826daeaf3fe5ba6ab"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#afc7ff1f66a8cda9826daeaf3fe5ba6ab">VALID_CFG</a> = 0b01</td></tr>
<tr class="memdesc:afc7ff1f66a8cda9826daeaf3fe5ba6ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Data will be written to <a class="el" href="union_config.html" title="Union configuration register. ">Config</a> register. <br /></td></tr>
<tr class="separator:afc7ff1f66a8cda9826daeaf3fe5ba6ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca0198f642c007b7ae32728ecc7b4b1f"><td class="memItemLeft" align="right" valign="top"><a id="aca0198f642c007b7ae32728ecc7b4b1f"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#aca0198f642c007b7ae32728ecc7b4b1f">NO_VALID_CFG</a> = 0b00</td></tr>
<tr class="memdesc:aca0198f642c007b7ae32728ecc7b4b1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Data won't be written to <a class="el" href="union_config.html" title="Union configuration register. ">Config</a> register. <br /></td></tr>
<tr class="separator:aca0198f642c007b7ae32728ecc7b4b1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addf0469ded07f0cf2c7566745a9bf197"><td class="memItemLeft" align="right" valign="top"><a id="addf0469ded07f0cf2c7566745a9bf197"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#addf0469ded07f0cf2c7566745a9bf197">RESERVED</a> = 1</td></tr>
<tr class="memdesc:addf0469ded07f0cf2c7566745a9bf197"><td class="mdescLeft">&#160;</td><td class="mdescRight">Its value is always 1, reserved. <br /></td></tr>
<tr class="separator:addf0469ded07f0cf2c7566745a9bf197"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc58ecaefacef5592c90c4c843d81dde"><td class="memItemLeft" align="right" valign="top"><a id="afc58ecaefacef5592c90c4c843d81dde"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#afc58ecaefacef5592c90c4c843d81dde">FSR_6144</a> = 0b000</td></tr>
<tr class="memdesc:afc58ecaefacef5592c90c4c843d81dde"><td class="mdescLeft">&#160;</td><td class="mdescRight">Range: ±6.144 v. LSB SIZE = 187.5μV. <br /></td></tr>
<tr class="separator:afc58ecaefacef5592c90c4c843d81dde"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ef5d9e47353e4e30ceab533e2edf3ad"><td class="memItemLeft" align="right" valign="top"><a id="a9ef5d9e47353e4e30ceab533e2edf3ad"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a9ef5d9e47353e4e30ceab533e2edf3ad">FSR_4096</a> = 0b001</td></tr>
<tr class="memdesc:a9ef5d9e47353e4e30ceab533e2edf3ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Range: ±4.096 v. LSB SIZE = 125μV. <br /></td></tr>
<tr class="separator:a9ef5d9e47353e4e30ceab533e2edf3ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2acfebaaa24ac5a6925be110a5a3edfa"><td class="memItemLeft" align="right" valign="top"><a id="a2acfebaaa24ac5a6925be110a5a3edfa"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a2acfebaaa24ac5a6925be110a5a3edfa">FSR_2048</a> = 0b010</td></tr>
<tr class="memdesc:a2acfebaaa24ac5a6925be110a5a3edfa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Range: ±2.048 v. LSB SIZE = 62.5μV ***DEFAULT. <br /></td></tr>
<tr class="separator:a2acfebaaa24ac5a6925be110a5a3edfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64ab7dc3b0b643889a45b4a8a15ed73b"><td class="memItemLeft" align="right" valign="top"><a id="a64ab7dc3b0b643889a45b4a8a15ed73b"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a64ab7dc3b0b643889a45b4a8a15ed73b">FSR_1024</a> = 0b011</td></tr>
<tr class="memdesc:a64ab7dc3b0b643889a45b4a8a15ed73b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Range: ±1.024 v. LSB SIZE = 31.25μV. <br /></td></tr>
<tr class="separator:a64ab7dc3b0b643889a45b4a8a15ed73b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa90c0882b487e68fa6cfe27790d6a5fa"><td class="memItemLeft" align="right" valign="top"><a id="aa90c0882b487e68fa6cfe27790d6a5fa"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#aa90c0882b487e68fa6cfe27790d6a5fa">FSR_0512</a> = 0b100</td></tr>
<tr class="memdesc:aa90c0882b487e68fa6cfe27790d6a5fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Range: ±0.512 v. LSB SIZE = 15.625μV. <br /></td></tr>
<tr class="separator:aa90c0882b487e68fa6cfe27790d6a5fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b0abd4476219e551141a10c1266c451"><td class="memItemLeft" align="right" valign="top"><a id="a5b0abd4476219e551141a10c1266c451"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a5b0abd4476219e551141a10c1266c451">FSR_0256</a> = 0b111</td></tr>
<tr class="memdesc:a5b0abd4476219e551141a10c1266c451"><td class="mdescLeft">&#160;</td><td class="mdescRight">Range: ±0.256 v. LSB SIZE = 7.8125μV. <br /></td></tr>
<tr class="separator:a5b0abd4476219e551141a10c1266c451"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a693fdcb47c270a6f3244df1eefdca4ca"><td class="memItemLeft" align="right" valign="top"><a id="a693fdcb47c270a6f3244df1eefdca4ca"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a693fdcb47c270a6f3244df1eefdca4ca">RATE_8SPS</a> = 0b000</td></tr>
<tr class="memdesc:a693fdcb47c270a6f3244df1eefdca4ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">8 samples/s, Tconv=125ms <br /></td></tr>
<tr class="separator:a693fdcb47c270a6f3244df1eefdca4ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b92ca329799360f0dfc19bec589280c"><td class="memItemLeft" align="right" valign="top"><a id="a6b92ca329799360f0dfc19bec589280c"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a6b92ca329799360f0dfc19bec589280c">RATE_16SPS</a> = 0b001</td></tr>
<tr class="memdesc:a6b92ca329799360f0dfc19bec589280c"><td class="mdescLeft">&#160;</td><td class="mdescRight">16 samples/s, Tconv=62.5ms <br /></td></tr>
<tr class="separator:a6b92ca329799360f0dfc19bec589280c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9f2d072f99bdce404c613135ba07829"><td class="memItemLeft" align="right" valign="top"><a id="af9f2d072f99bdce404c613135ba07829"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#af9f2d072f99bdce404c613135ba07829">RATE_32SPS</a> = 0b010</td></tr>
<tr class="memdesc:af9f2d072f99bdce404c613135ba07829"><td class="mdescLeft">&#160;</td><td class="mdescRight">32 samples/s, Tconv=31.25ms <br /></td></tr>
<tr class="separator:af9f2d072f99bdce404c613135ba07829"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f1e5499c69409830f3dad1c0c66fc07"><td class="memItemLeft" align="right" valign="top"><a id="a6f1e5499c69409830f3dad1c0c66fc07"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a6f1e5499c69409830f3dad1c0c66fc07">RATE_64SPS</a> = 0b011</td></tr>
<tr class="memdesc:a6f1e5499c69409830f3dad1c0c66fc07"><td class="mdescLeft">&#160;</td><td class="mdescRight">64 samples/s, Tconv=15.625ms <br /></td></tr>
<tr class="separator:a6f1e5499c69409830f3dad1c0c66fc07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10ab539a0704cc42d3441f3c94a9a649"><td class="memItemLeft" align="right" valign="top"><a id="a10ab539a0704cc42d3441f3c94a9a649"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a10ab539a0704cc42d3441f3c94a9a649">RATE_128SPS</a> = 0b100</td></tr>
<tr class="memdesc:a10ab539a0704cc42d3441f3c94a9a649"><td class="mdescLeft">&#160;</td><td class="mdescRight">128 samples/s, Tconv=7.8125ms <br /></td></tr>
<tr class="separator:a10ab539a0704cc42d3441f3c94a9a649"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6deae5bd5b8578a481b376349edcebe1"><td class="memItemLeft" align="right" valign="top"><a id="a6deae5bd5b8578a481b376349edcebe1"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a6deae5bd5b8578a481b376349edcebe1">RATE_250SPS</a> = 0b101</td></tr>
<tr class="memdesc:a6deae5bd5b8578a481b376349edcebe1"><td class="mdescLeft">&#160;</td><td class="mdescRight">250 samples/s, Tconv=4ms <br /></td></tr>
<tr class="separator:a6deae5bd5b8578a481b376349edcebe1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5682051293d721f5efc05d05f997d150"><td class="memItemLeft" align="right" valign="top"><a id="a5682051293d721f5efc05d05f997d150"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#a5682051293d721f5efc05d05f997d150">RATE_475SPS</a> = 0b110</td></tr>
<tr class="memdesc:a5682051293d721f5efc05d05f997d150"><td class="mdescLeft">&#160;</td><td class="mdescRight">475 samples/s, Tconv=2.105ms <br /></td></tr>
<tr class="separator:a5682051293d721f5efc05d05f997d150"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adaff9f6a747f4b3b6cb10608b8581ab0"><td class="memItemLeft" align="right" valign="top"><a id="adaff9f6a747f4b3b6cb10608b8581ab0"></a>
const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_s1118.html#adaff9f6a747f4b3b6cb10608b8581ab0">RATE_860SPS</a> = 0b111</td></tr>
<tr class="memdesc:adaff9f6a747f4b3b6cb10608b8581ab0"><td class="mdescLeft">&#160;</td><td class="mdescRight">860 samples/s, Tconv=1.163ms <br /></td></tr>
<tr class="separator:adaff9f6a747f4b3b6cb10608b8581ab0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class representing the <a class="el" href="class_a_d_s1118.html">ADS1118</a> sensor chip </p><dl class="section author"><dt>Author</dt><dd>Alvaro Salazar <a href="#" onclick="location.href='mai'+'lto:'+'alv'+'ar'+'o@d'+'en'+'kit'+'ro'+'nik'+'.c'+'om'; return false;">alvar<span style="display: none;">.nosp@m.</span>o@de<span style="display: none;">.nosp@m.</span>nkitr<span style="display: none;">.nosp@m.</span>onik<span style="display: none;">.nosp@m.</span>.com</a> </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="afaddf1d46e3b32d433c67122d96a6ebb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afaddf1d46e3b32d433c67122d96a6ebb">&#9670;&nbsp;</a></span>ADS1118()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ADS1118::ADS1118 </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>io_pin_cs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>
<p>Constructor of the class </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">io_pin_cs</td><td>a byte indicating the pin to be use as the chip select pin (CS) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a817f1a7619d97e19475458dc3eea5f88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a817f1a7619d97e19475458dc3eea5f88">&#9670;&nbsp;</a></span>begin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADS1118::begin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This method initialize the SPI port and the config register. </p>
<p>This method initialize the SPI port and the config register </p>

</div>
</div>
<a id="a8d79b157a07574bd8745137a8347649e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d79b157a07574bd8745137a8347649e">&#9670;&nbsp;</a></span>decodeConfigRegister()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADS1118::decodeConfigRegister </td>
          <td>(</td>
          <td class="paramtype">union <a class="el" href="union_config.html">Config</a>&#160;</td>
          <td class="paramname"><em>configRegister</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Decoding a configRegister structure and then print it out to the Serial port. </p>
<p>Decoding a configRegister structure and then print it out to the Serial port </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">configRegister</td><td>The config register in "union Config" format </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a649c53bdf46a93b5ab682d04b9f9df5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a649c53bdf46a93b5ab682d04b9f9df5e">&#9670;&nbsp;</a></span>disablePullup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADS1118::disablePullup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disabling the internal pull-up resistor of the DOUT pin. </p>
<p>Disabling the internal pull-up resistor of the DOUT pin </p>

</div>
</div>
<a id="a833326b882b86608d62450fcedabbe4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a833326b882b86608d62450fcedabbe4a">&#9670;&nbsp;</a></span>enablePullup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADS1118::enablePullup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enabling the internal pull-up resistor of the DOUT pin. </p>
<p>Enabling the internal pull-up resistor of the DOUT pin </p>

</div>
</div>
<a id="adf872650d20977b5872f88fa36182d3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf872650d20977b5872f88fa36182d3a">&#9670;&nbsp;</a></span>getADCValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t ADS1118::getADCValue </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>inputs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Getting a sample from the specified input. </p>
<p>Getting a sample from the specified input </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inputs</td><td>Sets the input of the ADC: Diferential inputs: DIFF_0_1, DIFF_0_3, DIFF_1_3, DIFF_2_3. Single ended input: AIN_0, AIN_1, AIN_2, AIN_3 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A word containing the ADC value </dd></dl>

</div>
</div>
<a id="a11e4c070217773d71da1d22506e64c00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11e4c070217773d71da1d22506e64c00">&#9670;&nbsp;</a></span>getMilliVolts() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double ADS1118::getMilliVolts </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>inputs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Getting the millivolts from the specified inputs. </p>
<p>Getting the millivolts from the specified inputs </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inputs</td><td>Sets the inputs to be adquired. Diferential inputs: DIFF_0_1, DIFF_0_3, DIFF_1_3, DIFF_2_3. Single ended input: AIN_0, AIN_1, AIN_2, AIN_3 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A double (32bits) containing the ADC value in millivolts </dd></dl>

</div>
</div>
<a id="a5d88241e78575ca86f6206f02cec0614"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d88241e78575ca86f6206f02cec0614">&#9670;&nbsp;</a></span>getMilliVolts() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double ADS1118::getMilliVolts </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Getting the millivolts from the settled inputs. </p>
<p>Getting the millivolts from the settled inputs </p><dl class="section return"><dt>Returns</dt><dd>A double (32bits) containing the ADC value in millivolts </dd></dl>

</div>
</div>
<a id="acf67a3c09b9d165f04e2e37e618e4fcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf67a3c09b9d165f04e2e37e618e4fcb">&#9670;&nbsp;</a></span>getTemperature()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double ADS1118::getTemperature </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Getting the temperature in degrees celsius from the internal sensor of the <a class="el" href="class_a_d_s1118.html">ADS1118</a>. </p>
<p>Getting the temperature in degrees celsius from the internal sensor of the <a class="el" href="class_a_d_s1118.html">ADS1118</a> </p><dl class="section return"><dt>Returns</dt><dd>A double (32bits) containing the temperature in degrees celsius of the internal sensor </dd></dl>

</div>
</div>
<a id="af739fb00547d7a5df8c5010c40b64c6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af739fb00547d7a5df8c5010c40b64c6a">&#9670;&nbsp;</a></span>setContinuousMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADS1118::setContinuousMode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Setting to continuous adquisition mode. </p>
<p>Setting to continuous adquisition mode </p>

</div>
</div>
<a id="a15fcd99b88c988fef9b4cc04347b08a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15fcd99b88c988fef9b4cc04347b08a5">&#9670;&nbsp;</a></span>setFullScaleRange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADS1118::setFullScaleRange </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fsr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Setting the full scale range in the config register. </p>
<p>Setting the full scale range in the config register </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fsr</td><td>The full scale range: FSR_6144 (±6.144V)*, FSR_4096(±4.096V)*, FSR_2048(±2.048V), FSR_1024(±1.024V), FSR_0512(±0.512V), FSR_0256(±0.256V). (*) No more than VDD + 0.3 V must be applied to this device. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a074c71a9eeb1d0db946f5f4b1308c69f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a074c71a9eeb1d0db946f5f4b1308c69f">&#9670;&nbsp;</a></span>setInputSelected()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADS1118::setInputSelected </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Setting the inputs to be adquired in the config register. </p>
<p>Setting the inputs to be adquired in the config register. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>The input selected: Diferential inputs: DIFF_0_1, DIFF_0_3, DIFF_1_3, DIFF_2_3. Single ended input: AIN_0, AIN_1, AIN_2, AIN_3 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="abcabaf741cc3e45e53a6967e0d113073"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abcabaf741cc3e45e53a6967e0d113073">&#9670;&nbsp;</a></span>setSampligRate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADS1118::setSampligRate </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>samplingRate</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Setting the sampling rate specified in the config register. </p>
<p>Setting the sampling rate specified in the config register </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">samplingRate</td><td>It's the sampling rate: RATE_8SPS, RATE_16SPS, RATE_32SPS, RATE_64SPS, RATE_128SPS, RATE_250SPS, RATE_475SPS, RATE_860SPS </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9e2e456dee0ee957fe89319d12bd833c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e2e456dee0ee957fe89319d12bd833c">&#9670;&nbsp;</a></span>setSingleShotMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ADS1118::setSingleShotMode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Setting to single shot adquisition and power down mode. </p>
<p>Setting to single shot adquisition and power down mode </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_a_d_s1118_8h_source.html">ADS1118.h</a></li>
<li>ADS1118.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
